package com.msb.test04;

public class TestMethod {

    public static int addNumber(int a, int b) {
        return a + b;
    }
    //方法的重载，函数名一样，参数列表不一样
    public static int addNumber(int a, int b,int c) {
        return a + b+c;
    }
    
    public static void main(String[] args) {
    System.out.println(addNumber(1,2));
    System.out.println(addNumber(1,2,3));
    }


}
